@extends('layouts.admin')
@section('title','标签列表')


@section('content')

    <!-- Main content -->
    <section class="content">
      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
             <a href="{{route('admin.tag.create')}}"><button type="button" class="btn bg-maroon btn-flat margin">新增</button></a>
             <button type="button" class="btn bg-olive btn-flat margin">删除</button>
             <div class="box-tools">
                <div class="input-group input-group-sm" style="width: 150px;">
                  <input type="text" name="table_search" class="form-control pull-right" placeholder="Search">

                  <div class="input-group-btn">
                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                  </div>
                </div>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body">
              <table id="example2" class="table table-bordered table-hover">
                <thead>
                <tr>
                	<th></th>
                	<th>id</th>
                  	<th>标签名称</th>
                  	<th>标签类型</th>
                  	<th>是否作为栏目</th>
                  	
                  	
                  	<th>操作</th>
                </tr>
                </thead>
                <tbody>
                @foreach($Tag as $v)
                <tr>
                	<td><input type="checkbox" value="{!!$v['id']!!}"></td>
                  	<td>{!!$v->id!!}</td>
                  	<td>{!!$v->name!!}</td>
                  	<td>{!!$v->type!!}</td>
                    <td><span class="badge bg-red">{!!$v->status!!}</span></td>
                  	
                  	
                  	<td>	
	                  	<a href="{{route('admin.tag.edit',['id'=>$v['id']])}}"><button type="button" class="btn btn-info">编辑</button></a>
	                  	<a href="{{route('admin.tag.destroy',['id'=>$v['id']])}}" type="button" class="btn btn-danger ajax-get" data-confirm="确定要删除吗？" data-success="removeTr">删除</a>
	              		
              		</td>
                
                </tr>

                @endforeach
                </tbody>
              </table>
            </div>
            <!-- /.box-body -->
              <div class="paginate">{{ $Tag->links() }}</div>
              
           
          </div>

          <!-- /.box -->
        </div>
        <!-- /.col -->
      </div>
      <!-- /.row -->
    </section>

    <!-- /.content -->
  </div>
 


@endsection